package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllgoods() (error, []models.GoodsView, int64) {
	err, consumerData, total := dao.GetAllgoods()
	return err, consumerData, total
}


func Delgoods(goodsid string) error {
	err := dao.Delgoods(goodsid)
	return err
}

func Updategoods(goodsdata models.Goods) error {
	err:= dao.Updategoods(goodsdata)
	return err
}

func Addgoods(goodsdata models.Goods) (error) {
	err := dao.Addgoods(goodsdata)
	return err
}
